package cn.wyl.system;

import cn.wyl.PetHomeApp;
import cn.wyl.basic.util.StrUtils;
import cn.wyl.system.domain.Menu;
import cn.wyl.system.mapper.MenuMapper;
import cn.wyl.user.mapper.LogininfoMapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.test.context.junit4.SpringRunner;

import javax.sound.midi.Soundbank;
import java.util.List;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = PetHomeApp.class)
public class menutest {
    @Autowired
    private LogininfoMapper mapper;

    @Test
    public void test() throws Exception{
        /*List<Menu> menus = mapper.loadMenusByLogininfoId(348l);
        menus.forEach(System.out::println);*/
        List<String> permissions = mapper.loadPermissionsByLogininfoId(348l);
        permissions.forEach(System.out::println);
    }
}
